package com.example.ecs.components.render;

import com.example.ecs.core.Component;
import com.example.ecs.core.ComponentKey;

/**
 * RenderableComponent接口表示所有可渲染组件的基类
 */
@ComponentKey(RenderableComponent.class)
public abstract class RenderableComponent extends Component {
    public java.awt.Color color;
    
    public RenderableComponent(java.awt.Color color) {
        this.color = color;
    }
    
    /**
     * 渲染方法，由具体的渲染组件实现
     */
    public abstract void render(java.awt.Graphics2D g, double x, double y);
}